package model

import "strings"

type UserSlice []*User

func (c UserSlice) Len() int { return len(c) }
func (c UserSlice) Less(i, j int) bool {
	return strings.ToLower(c[i].UserName)[0] < strings.ToLower(c[j].UserName)[0]
}
func (c UserSlice) Swap(i, j int) { c[i], c[j] = c[j], c[i] }
